import { P } from "@/common/para.js";

export const eventColumn = [
  {
    name: "visitorName",
    title: "访客姓名",
  },
  {
    name: "plateNumber",
    title: "车牌",
  },
  {
    name: "completedNum",
    title: "同行人数",
  },
  {
    name: "entryTime",
    title: "进入时间",
  },
  {
    name: "exitTime",
    title: "离开时间",
  },
  {
    name: "visitorType",
    title: "访客类型",
  },
  {
    name: "intervieweeName",
    title: "受访人",
  },
  {
    name: "reason",
    title: "来访事由",
    single:true,
  },
  {
    name: "avatar",
    title: "头像",
    type: "image",
    width: 160,
    height: 100,
  },
];

export const eventData = P.array(8, {
  date: "2023-4-18 13:55:49",
  people: "访客1",
  request: "有",
  reason: "校园会议",
  guard: "李兆伟",
  _title: "访客数据1",
  _tag: {
    type: "line-blue",
    text: "访客",
  },
  _hexagon: {
    type: "blue",
    text: "未处理",
  },
  _image: {
    url: "https://img.mp.sohu.com/upload/20170512/c106a6f17bf04d7da46084eec1513a3b_th.png",
    width: 80,
    height: 105,
  },
});
eventData.map((item, index) => {
  if (index >= 4) {
    item._hexagon.type = "orange";
    item._image.width = 105;
    item._image.height = 80;
  }
  return item;
});
